package vip.hamlin.net.Utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;

/**
 * 生成签名工具类
 * Created by SunShao on 2016/6/24.
 */
public class SignatureUtils {
    private static IAcsClient client = null;

    static {
        String regionId = "cn-hangzhou"; //必填固定值，必须为“cn-hanghou”
        String accessKeyId = "LBDZ0mVBgExTLPLK"; // your accessKey
        String accessKeySecret = "H8S8DIB8jNwGeDqKR4y3S1038dqu7k";// your accessSecret
        IClientProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        // 若报Can not find endpoint to access异常，请添加以下此行代码
        // DefaultProfile.addEndpoint("cn-hangzhou", "cn-hangzhou", "Alidns", "alidns.aliyuncs.com");
        client = new DefaultAcsClient(profile);
    }
}
